package com.ruoyi.consumption.mapper;

import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; //添加
import com.ruoyi.consumption.domain.Consumption;

/**
 * 能耗Mapper接口
 * 
 * @author hcc
 * @date 2024-11-25
 */
public interface ConsumptionMapper extends BaseMapper<Consumption> //修改
{
    /**
     * 查询能耗
     * 
     * @param consumptionId 能耗主键
     * @return 能耗
     */
    public Consumption selectConsumptionByConsumptionId(String consumptionId);

    /**
     * 查询能耗列表
     * 
     * @param consumption 能耗
     * @return 能耗集合
     */
    public List<Consumption> selectConsumptionList(Consumption consumption);

    /**
     * 新增能耗
     * 
     * @param consumption 能耗
     * @return 结果
     */
    public int insertConsumption(Consumption consumption);

    /**
     * 修改能耗
     * 
     * @param consumption 能耗
     * @return 结果
     */
    public int updateConsumption(Consumption consumption);

    /**
     * 删除能耗
     * 
     * @param consumptionId 能耗主键
     * @return 结果
     */
    public int deleteConsumptionByConsumptionId(String consumptionId);

    /**
     * 批量删除能耗
     * 
     * @param consumptionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteConsumptionByConsumptionIds(String[] consumptionIds);

    List<Date> getTime();

    Consumption getDataList(Date date);
}
